﻿// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

#if !NET40
using System;

namespace CuteAnt.IO.Pipelines
{
  /// <summary>Defines a class that provides a connection from which data can be read from and written to.</summary>
  public interface IPipeConnection : IDisposable
  {
    /// <summary>Gets the <see cref="IPipeReader"/> half of the duplex connection.</summary>
    IPipeReader Input { get; }

    /// <summary>Gets the <see cref="IPipeWriter"/> half of the duplex connection.</summary>
    IPipeWriter Output { get; }
  }
}
#endif
